package com.zzsz.cf.cat.service.Impl;

import com.zzsz.cf.cat.domain.ZzwCategory;
import com.zzsz.cf.cat.mapper.CatMapper;
import com.zzsz.cf.cat.service.IcatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * --- 就那样---
 *
 * @author zzw
 * @date 2025/9/1
 * @desc
 */
@Service
public class catServiceImpl implements IcatService {
    @Autowired
    private CatMapper catMapper;
    @Override
    public List<ZzwCategory> selectCatList(ZzwCategory zzwCategory) {
        return catMapper.selectCatList(zzwCategory);
    }

    @Override
    public int insertZzwCategory(ZzwCategory zzwCategory) {
        return catMapper.insertZzwCategory(zzwCategory);
    }

    @Override
    public int deleteCat(List<Long> ids) {
        return catMapper.deleteCat(ids);
    }

    @Override
    public int updateZzwCategory(ZzwCategory zzwCategory) {
        return catMapper.updateZzwCategory(zzwCategory);
    }
}